package jdk7;

/**
 * @author honway.liu
 * @date 2018/4/28 下午11:28
 * @email gm100861@gmail.com
 * @blog http://linuxsogood.org
 */
public abstract class Role {

    public Role() {
    }

    public Role(int level, String roleName, int blood) {
        this.level = level;
        this.roleName = roleName;
        this.blood = blood;
    }

    private int level;
    private String roleName;
    private int blood;

    public abstract void fight();

    public int getLevel() {
        return level;
    }

    public void setLevel(int level) {
        this.level = level;
    }

    public String getRoleName() {
        return roleName;
    }

    public void setRoleName(String roleName) {
        this.roleName = roleName;
    }

    public int getBlood() {
        return blood;
    }

    public void setBlood(int blood) {
        this.blood = blood;
    }
}
